home *** CD-ROM | disk | FTP | other *** search
- //******************************************************************'
- //* *'
- //* TurboCAD for Windows *'
- //* Copyright (c) 1993 - 2004 *'
- //* International Microcomputer Software, Inc. *'
- //* (IMSI) *'
- //* All rights reserved. *'
- //* *'
- //******************************************************************'
- using System;
- using System.Drawing;
- using System.Collections;
- using System.ComponentModel;
- using System.Windows.Forms;
-
- namespace CSharpRoundRect
- {
- /// <summary>
- /// Summary description for FormRect.
- /// </summary>
- public class frmRRect : System.Windows.Forms.Form
- {
- private System.Windows.Forms.Button cmOK;
- private System.Windows.Forms.Button cmCancel;
- internal System.Windows.Forms.TextBox tbRoundness;
- internal System.Windows.Forms.Label Label5;
- /// <summary>
- /// Required designer variable.
- /// </summary>
- private System.ComponentModel.Container components = null;
-
- public bool bCanceled;
-
- public frmRRect()
- {
- //
- // Required for Windows Form Designer support
- //
- InitializeComponent();
-
- //
- // TODO: Add any constructor code after InitializeComponent call
- //
- bCanceled = true;
- }
-
- /// <summary>
- /// Clean up any resources being used.
- /// </summary>
- protected override void Dispose( bool disposing )
- {
- if( disposing )
- {
- if(components != null)
- {
- components.Dispose();
- }
- }
- base.Dispose( disposing );
- }
-
- #region Windows Form Designer generated code
- /// <summary>
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- /// </summary>
- private void InitializeComponent()
- {
- this.cmOK = new System.Windows.Forms.Button();
- this.cmCancel = new System.Windows.Forms.Button();
- this.tbRoundness = new System.Windows.Forms.TextBox();
- this.Label5 = new System.Windows.Forms.Label();
- this.SuspendLayout();
- //
- // cmOK
- //
- this.cmOK.Location = new System.Drawing.Point(112, 56);
- this.cmOK.Name = "cmOK";
- this.cmOK.Size = new System.Drawing.Size(88, 24);
- this.cmOK.TabIndex = 0;
- this.cmOK.Text = "OK";
- this.cmOK.Click += new System.EventHandler(this.cmOK_Click);
- //
- // cmCancel
- //
- this.cmCancel.Location = new System.Drawing.Point(8, 56);
- this.cmCancel.Name = "cmCancel";
- this.cmCancel.Size = new System.Drawing.Size(88, 24);
- this.cmCancel.TabIndex = 0;
- this.cmCancel.Text = "Cancel";
- //
- // tbRoundness
- //
- this.tbRoundness.Location = new System.Drawing.Point(104, 14);
- this.tbRoundness.Name = "tbRoundness";
- this.tbRoundness.Size = new System.Drawing.Size(96, 20);
- this.tbRoundness.TabIndex = 9;
- this.tbRoundness.Text = "0";
- //
- // Label5
- //
- this.Label5.Location = new System.Drawing.Point(16, 16);
- this.Label5.Name = "Label5";
- this.Label5.Size = new System.Drawing.Size(88, 16);
- this.Label5.TabIndex = 10;
- this.Label5.Text = "Roundness:";
- //
- // frmRRect
- //
- this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
- this.ClientSize = new System.Drawing.Size(208, 93);
- this.Controls.Add(this.Label5);
- this.Controls.Add(this.tbRoundness);
- this.Controls.Add(this.cmOK);
- this.Controls.Add(this.cmCancel);
- this.Name = "frmRRect";
- this.Text = "FormRect";
- this.ResumeLayout(false);
-
- }
- #endregion
-
- private void cmOK_Click(object sender, System.EventArgs e)
- {
- bCanceled = false;
- frmRRect.ActiveForm.Hide ();
- }
- }
- }
-